
#ifndef TOOLPENCIL_H
#define TOOLPENCIL_H

#include "editortool.h"

class ToolPencil : public EditorTool
{
public:
	ToolPencil();
	virtual ~ToolPencil();

	virtual void mousePress(const QPoint& p);
	virtual void mouseRelease(const QPoint& p);
	virtual void mouseMove(const QPoint& p);
	virtual QRect draw(QPainter* p);

private:
	QRect boundingRect(const QPoint& p);

	bool m_drawing;
	QPoint m_prev;
	QPoint m_current;
};


#endif

